﻿myApp.controller("QuestionsCtrl", ['$scope', '$http', '$routeParams', '$restUrls', '$post', '$rootScope', function ($scope, $http, $routeParams, $restUrls, $post, $rootScope) {
    $scope.getQuestions = function () {
        $http({ method: "GET", url: $restUrls["getQuestions"], params: {  } }).success(function (result) {
            if (result.success == 1) {
                $scope.questions = result.data;
            }
        });
    }
    $scope.getQuestions();
}]);